<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page isELIgnored="false" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>宝可梦修改页面</title>
    <link rel="stylesheet" href="css/revisepokemon.css">
</head>
<body>
<div id="main-container">
    <div class="title-area">最新记录</div>
    <div class="content-area">
        <div class="image-area">
            <img src="imgs/pokemonRevise.webp" alt="宝可梦图片" class="pokemon-image">
        </div>
        <div class="form-section">
            <div class="input-section" >
                <%--隐藏域，用于存储宝可梦的id--%>
                    <form method="post" action="/untitled_war/updatepokemonServlet">
                <input type="hidden" id="pokemon-id" name="id" value="${pokemon.id}">
                <div class="input-group">
                    <label for="pokemon-name" id="pokemon-information" >宝可梦名：</label>
                    <input type="text" id="pokemon-name" value="${pokemon.name}" name="pokemonname" readonly>
                </div>
                <div class="input-group">
                    <label for="pokemon-type" id="pokemon-information" >宝可梦属性：</label>
                    <input type="text" id="pokemon-type" value="${pokemon.type}" name="pokemontype">
                </div>
                <div class="input-group">
                    <label for="discovery-location" id="pokemon-information" >宝可梦发现地：</label>
                    <input type="text" id="discovery-location" value="${pokemon.describe}" name="pokemondescribe">
                </div>
                <div class="input-group">
                    <label for="signature-move" id="pokemon-information" >宝可梦招牌技能：</label>
                    <input type="text" id="signature-move" value="${pokemon.skill}" name="pokemonskill">
                </div>
                    <div class="input-group">
                        <label for="signature-move" id="pokemon-information" >发现时间</label>
                        <input type="text" id="signature-move" value="${pokemon.time}" name="pokemontime">
                    </div>
                        <input type="submit" id="update-button" value="更新">
            </form>

        </div>
    </div>
</div>
</body>
</html>
